package com.treasure.common.types;

import com.treasure.common.utils.SnowFlakeId;
import lombok.Getter;

import java.util.Objects;

/**
 * @author sunhongmin
 * @date 2023/9/6 22:56
 * @description
 */
@Getter
public class ClientId {
    private final String value;

    public ClientId(String value) {
        if (Objects.isNull(value)) {
            value = SnowFlakeId.nextId();
        }
        this.value = value;
    }
}
